<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Dolby Vision Content Editing for Third-Party Developers: ExampleDecoder Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="dlb_stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Dolby Vision Content Editing for Third-Party Developers
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('a00056.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="a00053.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">ExampleDecoder Class Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for ExampleDecoder:</div>
<div class="dyncontent">
<div class="center"><img src="a00055.png" border="0" usemap="#a_example_decoder_inherit__map" alt="Inheritance graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ExampleDecoder:</div>
<div class="dyncontent">
<div class="center"><img src="a00054.png" border="0" usemap="#a_example_decoder_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a252c3fb2af11239e0e0a2581f906631d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#a252c3fb2af11239e0e0a2581f906631d">onInputBufferAvailable</a> (@NonNull MediaCodec <a class="el" href="a00032.html#a4087c1c5b90a1d16270c93062e8cfe87">codec</a>, int index)</td></tr>
<tr class="separator:a252c3fb2af11239e0e0a2581f906631d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21204abd1fd2b707fc8df77c0127e73d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#a21204abd1fd2b707fc8df77c0127e73d">onOutputBufferAvailable</a> (@NonNull MediaCodec <a class="el" href="a00032.html#a4087c1c5b90a1d16270c93062e8cfe87">codec</a>, int index, @NonNull MediaCodec.BufferInfo info)</td></tr>
<tr class="separator:a21204abd1fd2b707fc8df77c0127e73d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f474cf1535a5f0e96939fadb313902a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#a8f474cf1535a5f0e96939fadb313902a">onError</a> (@NonNull MediaCodec <a class="el" href="a00032.html#a4087c1c5b90a1d16270c93062e8cfe87">codec</a>, @NonNull MediaCodec.CodecException e)</td></tr>
<tr class="separator:a8f474cf1535a5f0e96939fadb313902a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81f1951b3b05d2a465fb0c96e7ac3f24"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#a81f1951b3b05d2a465fb0c96e7ac3f24">onOutputFormatChanged</a> (@NonNull MediaCodec <a class="el" href="a00032.html#a4087c1c5b90a1d16270c93062e8cfe87">codec</a>, @NonNull MediaFormat format)</td></tr>
<tr class="separator:a81f1951b3b05d2a465fb0c96e7ac3f24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_a00032"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_a00032')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="a00032.html">BuilderCodecTemplate</a></td></tr>
<tr class="memitem:a2bc24b6188d75a9930a456cc4aeb6868 inherit pub_methods_a00032"><td class="memItemLeft" align="right" valign="top">final MediaCodec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a2bc24b6188d75a9930a456cc4aeb6868">getCodec</a> ()</td></tr>
<tr class="separator:a2bc24b6188d75a9930a456cc4aeb6868 inherit pub_methods_a00032"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7cc14274238caf8338243726572f62b inherit pub_methods_a00032"><td class="memItemLeft" align="right" valign="top">final void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#af7cc14274238caf8338243726572f62b">createCodec</a> (MediaCodec <a class="el" href="a00032.html#a4087c1c5b90a1d16270c93062e8cfe87">codec</a>)</td></tr>
<tr class="separator:af7cc14274238caf8338243726572f62b inherit pub_methods_a00032"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf4014b0ea74869169ba809f87c4e38b inherit pub_methods_a00032"><td class="memItemLeft" align="right" valign="top">final void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#adf4014b0ea74869169ba809f87c4e38b">setTransfer</a> (String transfer)</td></tr>
<tr class="separator:adf4014b0ea74869169ba809f87c4e38b inherit pub_methods_a00032"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_attribs_a00032"><td colspan="2" onclick="javascript:toggleInherit('pub_static_attribs_a00032')"><img src="closed.png" alt="-"/>&#160;Static Public Attributes inherited from <a class="el" href="a00032.html">BuilderCodecTemplate</a></td></tr>
<tr class="memitem:a6d1352c114277b68f4ac9b4717f6470f inherit pub_static_attribs_a00032"><td class="memItemLeft" align="right" valign="top">static final String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a6d1352c114277b68f4ac9b4717f6470f">VENDOR_DOLBY_CODEC_TRANSFER_PARAMKEY</a> = &quot;vendor.dolby.codec.transfer.value&quot;</td></tr>
<tr class="separator:a6d1352c114277b68f4ac9b4717f6470f inherit pub_static_attribs_a00032"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6924758e43cebaa67f154ad3505b1f8b inherit pub_static_attribs_a00032"><td class="memItemLeft" align="right" valign="top">static final String[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a6924758e43cebaa67f154ad3505b1f8b">TRANSFER_PARAMS</a> = {&quot;transfer.sdr.normal&quot;, &quot;transfer.sdr.high.fidelity&quot;, &quot;transfer.hlg&quot;, &quot;transfer.dolby&quot;}</td></tr>
<tr class="separator:a6924758e43cebaa67f154ad3505b1f8b inherit pub_static_attribs_a00032"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="a00005_source.html#l00039">39</a> of file <a class="el" href="a00005_source.html">ExampleDecoder.java</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a8f474cf1535a5f0e96939fadb313902a" name="a8f474cf1535a5f0e96939fadb313902a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f474cf1535a5f0e96939fadb313902a">&#9670;&#160;</a></span>onError()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void onError </td>
          <td>(</td>
          <td class="paramtype">@NonNull MediaCodec&#160;</td>
          <td class="paramname"><em>codec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull MediaCodec.CodecException&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="a00005_source.html#l00056">56</a> of file <a class="el" href="a00005_source.html">ExampleDecoder.java</a>.</p>

</div>
</div>
<a id="a252c3fb2af11239e0e0a2581f906631d" name="a252c3fb2af11239e0e0a2581f906631d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a252c3fb2af11239e0e0a2581f906631d">&#9670;&#160;</a></span>onInputBufferAvailable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void onInputBufferAvailable </td>
          <td>(</td>
          <td class="paramtype">@NonNull MediaCodec&#160;</td>
          <td class="paramname"><em>codec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="a00005_source.html#l00041">41</a> of file <a class="el" href="a00005_source.html">ExampleDecoder.java</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00056_a252c3fb2af11239e0e0a2581f906631d_cgraph.png" border="0" usemap="#aa00056_a252c3fb2af11239e0e0a2581f906631d_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="a21204abd1fd2b707fc8df77c0127e73d" name="a21204abd1fd2b707fc8df77c0127e73d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21204abd1fd2b707fc8df77c0127e73d">&#9670;&#160;</a></span>onOutputBufferAvailable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void onOutputBufferAvailable </td>
          <td>(</td>
          <td class="paramtype">@NonNull MediaCodec&#160;</td>
          <td class="paramname"><em>codec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull MediaCodec.BufferInfo&#160;</td>
          <td class="paramname"><em>info</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="a00005_source.html#l00048">48</a> of file <a class="el" href="a00005_source.html">ExampleDecoder.java</a>.</p>

</div>
</div>
<a id="a81f1951b3b05d2a465fb0c96e7ac3f24" name="a81f1951b3b05d2a465fb0c96e7ac3f24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81f1951b3b05d2a465fb0c96e7ac3f24">&#9670;&#160;</a></span>onOutputFormatChanged()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void onOutputFormatChanged </td>
          <td>(</td>
          <td class="paramtype">@NonNull MediaCodec&#160;</td>
          <td class="paramname"><em>codec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull MediaFormat&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="a00005_source.html#l00061">61</a> of file <a class="el" href="a00005_source.html">ExampleDecoder.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00005_source.html">ExampleDecoder.java</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.1-->
<!-- start footer part -->
<!-- This div is not default but moves the footer to the bottom of the page. -->
<div id="footer">
	<div id="nav-path" class="navpath">
		<!-- id is needed for treeview function! -->
		<ul>
			<li class="logo"><a href="https://www.dolby.com"> <svg
						version="1.1" id="Logo" xmlns="http://www.w3.org/2000/svg"
						xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
						viewBox="0 0 380 118.8"
						style="vertical-align: middle; fill: white;" xml:space="preserve"
						height="3em">
						<use href="#LogoPath" />
						</svg></a></li> <li class="navelem"><b>com</b></li><li class="navelem"><b>dolby</b></li><li class="navelem"><b>vision</b></li><li class="navelem"><a class="el" href="a00023.html">codecselection</a></li><li class="navelem"><a class="el" href="a00056.html">ExampleDecoder</a></li>
			<li class="footer">Generated on Wed Feb 15 2023 17:10:00 for Dolby Vision Content Editing for Third-Party Developers by&nbsp;Dolby Laboratories.<br>Confidential
				Information. &#169; 2011-2021 Dolby Laboratories, &#169; 2011-2021
				Dolby International AB. All rights reserved.
			</li>
		</ul>
	</div>
</div>
<svg style="display: none">
    <path id="LogoPath"
		d="M4.6,12.5h10.6c19.8,0,36,16.2,36,36s-16.2,36-36,36H4.6V12.5z
          M107,12.5H96.4c-19.8,0-36,16.2-36,36
          s16.2,36,36,36H107V12.5z
          M190.8,48.5c0,19.9-16.1,36-36,36h-26v-72h26C174.6,12.5,190.8,28.6,190.8,48.5z
          M179.9,48.5
          c0-13.8-11.3-25.1-25.1-25.1h-15.1v50.2h15.1C168.6,73.6,179.9,62.3,179.9,48.5z
          M246.2,59.6c0,13.8-11.2,25-25,25s-25-11.2-25-25
          s11.2-25,25-25S246.2,45.9,246.2,59.6z
          M236.3,59.5c0-8.2-6.8-15-15-15s-15,6.7-15,15c0,8.2,6.7,15,15,15
          C229.5,74.6,236.3,67.9,236.3,59.5z
          M253.3,84.5h10.9v-72h-10.9V84.5z
          M323.5,59.6c0,13.8-11.2,25-25,25c-5.3,0-10.2-1.7-14.3-4.5
          v4.4h-10.9v-72h10.9v26.7c4-2.8,9-4.5,14.3-4.5C312.3,34.7,323.5,45.9,323.5,59.6z
          M313.6,59.5c0-8.2-6.8-15-15-15
          c-6.6,0-12.3,4.3-14.3,10.3c-0.5,1.5-0.8,3.1-0.8,4.8c0,1.6,0.3,3.2,0.8,4.7c2,6,7.6,10.3,14.3,10.3
          C306.8,74.6,313.6,67.9,313.6,59.5z
          M363.5,34.7l-14.2,32l-14.2-32h-11.9l20.2,45.4c0,0-4.9,11.1-5,11.1c-1.3,2.9-4.8,4.3-7.7,3
          l-1.6-0.7l-4.4,9.9l0,0l0,0l0,0l3.8,1.7c7.1,3.2,15.5,0,18.6-7.2c0-0.1,25.8-57.8,28.3-63.2L363.5,34.7L363.5,34.7z" />
</svg>
</body>
</html>
